package com.pb.aop;

import java.lang.reflect.Method;
import org.apache.log4j.Logger;
import org.springframework.aop.MethodBeforeAdvice;

public class ServiceBeforeAdvisor implements MethodBeforeAdvice {
	private Logger logger = Logger.getLogger(ServiceBeforeAdvisor.class);
	@Override
	public void before(Method method, Object[] args, Object target)
			throws Throwable {
		logger.info("启动事务");
		logger.info("连接点对象："+target.getClass().getSimpleName());
		logger.info("连接点方法："+method.getName());
		logger.info("连接点方法参数："+args[0]);
		
	}
	
}